import Vue from "vue";
import Vuex from "vuex";
import dataDict from "./dataDict";
import role from "./role";
import app from "./app";
import getMenu from "./getMenu";
import user from "./user";
import mailbox from "./mailbox";
import problemExamine from "./problemExamine";
import department from "./department";
import column from "./column";
import common from "./common";
import template from "./template";
import essay from "./essay";
import ContentMode from "./ContentMode";
import suggest from "./suggest";
import staticHtml from "./static";
import theme from "./theme";
import button from "./button";
import formDesign from "./formDesign";
import workflow from "./workflow";
import meeting from "./meeting";
import socket from "./socket";

Vue.use(Vuex);

const store = new Vuex.Store({
  modules: {
    common,
    dataDict,
    role,
    app,
    getMenu,
    user,
    department,
    mailbox, //信箱
    problemExamine, // 问卷调查
    suggest, //建言献策
    column,
    template,
    essay,
    staticHtml,
    ContentMode,
    theme, // 主题色
    button,
    formDesign,
    workflow,
    socket,
    meeting // 会议
  }
});

export default store;
